#include <string.h>#include <inttypes.h>#include "uart.h"#include "serial.h"

Functions | |
| void | uart_send_buf (uint8_t *buf, uint8_t len) |
| int | serialize_msg (cmd_msg_t *p_msg, uint8_t *buf, int payloadlen) |
| void | led_on () |
| void | led_off () |
| void | sample_temp () |
| void | print_msg (const char *buf, int len) |
| void | print_num (int num) |
| void led_off | ( | ) |
| void led_on | ( | ) |
| void print_msg | ( | const char * | buf, | |
| int | len | |||
| ) |
Display the string on the LCD's display.

| void print_num | ( | int | num | ) |
Display a number on the LCD's display.

| void sample_temp | ( | ) |
Send a uart cmd_msg to sample temperature using Raven's on-board temperature sensor. The temperature value will be shown on the LCD.

| int serialize_msg | ( | cmd_msg_t * | p_msg, | |
| uint8_t * | buf, | |||
| int | payloadlen | |||
| ) |
Serialize a cmd_msg structure with its variable payload size specified by payloadlen and copy it into buf.
| void uart_send_buf | ( | uint8_t * | buf, | |
| uint8_t | len | |||
| ) |
Send a preamble and then a stream of bytes synchronously over the UART.
1.5.5